package com.atguigu.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zz_source
 * @creat 2022-08-28-19:52
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule myrule(){
        return new RandomRule();
    }
}
/*尚硅谷P41 轮询底层原理：自旋锁+CAS  || 知识，到Java高频面试题下搜、了解*/